package com.ophelisis.persistence.dao.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Repository;

import com.ophelisis.ibatis.handler.handler_board_pds;
import com.ophelisis.persistence.dao.BoardPdsDAO;
import com.ophelisis.persistence.domain.BoardPdsVO;

/**
 * <pre>
 * Class : com.ophelisis.persistence.dao.impl.BoardPdsDAOImpl / BoardPdsDAOImpl.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author hwanLee / apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2013. 07. 29.
 */
@Repository
public class BoardPdsDAOImpl implements BoardPdsDAO {
	@Override
	public List<BoardPdsVO> getBoardPdsList() throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.getBoardPdsList();
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public List<BoardPdsVO> getBoardPdsList(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.getBoardPdsList(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer getBoardPdsListCnt() throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.getBoardPdsListCnt();
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer getBoardPdsListCnt(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.getBoardPdsListCnt(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}
	
	@Override
	public List<BoardPdsVO> getBoardPdsDetail(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.getBoardPdsDetail(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return null;
		}
	}

	@Override
	public Integer setBoardPdsDelete(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.setBoardPdsDelete(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardPdsDeleteFinal(Map<String, Object> params) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.setBoardPdsDeleteFinal(params);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardPdsModify(BoardPdsVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.setBoardPdsModify(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}

	@Override
	public Integer setBoardPdsAdd(BoardPdsVO paramVO) throws DataAccessException, SQLException, Exception {
		try {
			return handler_board_pds.setBoardPdsAdd(paramVO);
		} catch (SQLException e) {
			e.printStackTrace();
			return 0;
		}
	}
}
